﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using FreeDAM.Domain.Entities;

namespace FreeDAM.Domain.Concrete
{
    public class EfDbContext : DbContext
    {
        public DbSet<Asset> Assets { get; set; }
        public DbSet<Tag> Tags { get; set; }
        public DbSet<Rendition> Renditions { get; set; }
        public DbSet<RenditionDefinition> RenditionDefinitions { get; set; }
        public DbSet<Renderer> Renderers { get; set; }
        public DbSet<AssetToRender> AssetsToRender { get; set; }
        public DbSet<RenditionGroup> RenditionGroups { get; set; }
        public DbSet<AssetHistory> AssetHistories { get; set; }
        public DbSet<TagCategory> TagCategories { get; set; }

        public EfDbContext()
            : base("FreeDAMDb")
        {
            //Database.SetInitializer(new DropCreateDatabaseAlways<EfDbContext>());
        }
    }
}
